package zhouyang.Assert.setterinjection;

import org.springframework.stereotype.Component;

/**
 * @author: 叶子
 * @date: 2022/03/02 12:57
 * 演示set注入解决循环依赖
 **/
@Component
public class ServiceBB {
    private ServiceAA serviceAA;

    public void setServiceAA(ServiceAA serviceAA) {
        this.serviceAA = serviceAA;
        System.out.println("BB里面设置了AA");
    }
}